package com.foreknow.service;

import com.foreknow.entity.User;

import java.util.List;

public interface UserService {

    User Login (String username,String password);



    /**
     * 条件查找
     * @param query
     * @return
     */
    List<User> queryAllUser(String query);


    boolean deleteUserById(Integer id);
    boolean updateUser(User user);
    boolean addUser(User user);

    /**
     * 批量删除用户
     * @param ids
     * @return
     */
    Integer deleteUsers(List<Integer> ids);

    /**
     * 根据id查询用户信息
     * @param id
     * @return
     */
    User findUserById(Integer id);


}
